// OriginalPropertySet.h: interface for the OriginalPropertySet class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ORIGINALPROPERTYSET_H__8160EFD5_E9DE_4C18_8B45_AA1E092F9B25__INCLUDED_)
#define AFX_ORIGINALPROPERTYSET_H__8160EFD5_E9DE_4C18_8B45_AA1E092F9B25__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "OriginalProperty.h"
#include "Afxtempl.h"

namespace PropertySystem
{
	class DllExport OriginalPropertySet  
	{
	public:
		OriginalPropertySet();
		virtual ~OriginalPropertySet();
		
	public:
		BOOL GetOriginalPropertySet(const CString& strPartID,
			const CString& strPropertyTable,
			const CString& strSource);
		BOOL GetOriginalPropertySet(INT strPartID,
			const CString& strPropertyTable,
			const CString& strSource);
		OriginalProperty* GetFirst();
		OriginalProperty* GetNext();

	private:
		void RemoveAll();
		void Close();
		OriginalProperty* GetOriginalProperty();
		BOOL GetOriginalPropertySet(const CString& strSql, const CString& strSource);

	private:
		CArray<OriginalProperty* , OriginalProperty*> m_theOPropertys;
		_RecordsetPtr m_rs;
	};
};
#endif // !defined(AFX_ORIGINALPROPERTYSET_H__8160EFD5_E9DE_4C18_8B45_AA1E092F9B25__INCLUDED_)
